using System;
namespace RomanJendrusz.Amazon.ETL.Infrastructure
{
    public class AssertThat
    {
        public static T IsNotNull<T>(T item, string argument) where T:class
        {
            if (item == null)
            {
                throw new ArgumentNullException(argument);
            }
            return item;
        }

        public static T IsNotNull<T>(T item) where T:class 
        {
            if( item ==  null)
            {
                throw new ArgumentNullException("item");
            }
            return item;
        }
    }
}